package com.itheima.goods.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
/**
 * spec实体类
 * @author itheima
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("tb_spec")
@Accessors(chain = true)
public class Spec implements Serializable{

	@ApiModelProperty("ID")
	@TableId(type = IdType.AUTO)
	private Integer id;//ID
    @ApiModelProperty("名称")
	private String name;//名称
    @ApiModelProperty("规格选项")
	private String options;//规格选项
    @ApiModelProperty("排序")
	private Integer seq;//排序
}
